#include <stdio.h>

int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    int maxN = a > b && a > c ? a : b > c ? b : c;
    int minN = a < b && a < c ? a : b < c ? b : c;
    int midN = a + b + c - maxN - minN;
    printf("%d->%d->%d", minN, midN, maxN);

    return 0;
}